package Client;

import java.io.IOException;
import java.util.List;

public class ClientSide {

	private List<NNAtomicRgister> replics;

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		
		int[] ports = {4001};
		String[] Ips = {"192.168.1.100"};
		
		PerfectPointToPointLink pl = new PerfectPointToPointLink("Client",4011,null);
		//BestEffortBroadcast beb = new BestEffortBroadcast(4002, ports, Ips);
		
		
		pl.send(new Message(new String("testeHeader"),new String("testMessage")));
		Message v = pl.deliver();
		System.out.println(v);
		v = pl.deliver();
		System.out.println(v);
		pl.closeConection();
		/*
		System.out.println("BroadCast:");
		beb.send(3);
		/*long v = beb.deliver();
		System.out.println(v);*/
		//beb.closeConection();
		
		
		// TODO Auto-generated method stub

	}

}
